<!-- $Id: order_info.htm 8439 2007-04-30 04:27:00Z scottye $ -->

{include file="pageheader.htm"}

<script src="js/topbar.js"></script>
<script src="js/utils.js"></script>
<script src="js/listtable.js"></script>
<script src="js/selectzone.js"></script>


 

<div class="list-div" style="margin-bottom: 5px">
<table width="100%" cellpadding="3" cellspacing="1">  

  <tr>
    <th colspan="4">{$lang.base_info}</th>
  </tr>

  <tr>
    <td width="15%"><div align="right"><strong>{$lang.label_order_sn}</strong></div></td>

    <td width="34%">{$order.orders_id}</td>

    <td width="15%"><div align="right"><strong>{$lang.label_order_status}</strong></div></td>
    <td>
    	<form name="frmOrderStatus" method="post" action="?page=orders&action=chgstatus" target="_self" >
    	<input type="hidden" name="id" value="{$order.orders_id}" >
    	<span id="idOrderStatus" > &nbsp; {html_options name="selectedstatus" options=$orderstatus selected=$order.status }
		<input type="submit" name="changestatus" value="更改" onclick="doChange(); return false;" > </span>
		
    	</form>
    	
	</td>

  </tr>

  <tr>
    <td><div align="right"><strong>{$lang.label_user_name}</strong></div></td>
    <td><a href="?page=customer&action=edit&id={$order.customers_id}" >{$order.customer_lname } &nbsp;{ $order.customer_fname} </a></td>
    <td><div align="right"><strong>{$lang.label_order_time}</strong></div></td>
    <td>{$order.date_purchased}</td>
  </tr>

  <tr>
    <td><div align="right"><strong>{$lang.label_payment}</strong></div></td>
    <td > {$order.payment_method} <br />{ $order.payment_desc} </td>

    <td><div align="right"><strong>{$lang.delivery_time}</strong></div></td>
    <td><font color="#FF0000">{$order.delivery_time}</font></td>
  </tr>

  <tr>
    <td><div align="right"><strong>{$lang.label_shipping}</strong></div></td>
    <td >
		{$order.country} &nbsp; {$order.prefecture} &nbsp; {$order.city} <br />
        {$order.address}&nbsp; {$order.postcode}
	</td>     

	<td> <div align="right"><strong>{$lang.label_email}</storng></div> </td>
	<td> {$order.customers_mail}</td>
  </tr> 
  
  {if $order.order_notes }
  <tr>
    <td><div align="right"><strong>{$lang.label_order_notes}</strong></div></td>
    <td colspan=3 >{$order.order_notes}</td>
  </tr>
  {/if}	  

</table>
</div>

<!-- list of ordered goods begin -->

<div class="list-div" style="margin-bottom: 5px">
<table width="100%" cellpadding="3" cellspacing="1">
  <tr>
    <th colspan="9" scope="col">{$lang.goods_info}  </th>
    </tr>
  <tr>    
    <td scope="col"><div align="left"><strong>{$lang.goods_sn}</strong></div></td>    
    <td scope="col"><div align="left"><strong>{$lang.goods_name}</strong></div></td>    
    <td scope="col"><div align="left"><strong>{$lang.goods_price}</strong></div>      <div align="left"></div></td>
    <td scope="col"><div align="left"><strong>{$lang.goods_number}</strong></div></td>
    <td scope="col"><div align="left"><strong>{$lang.goods_attr}</strong></div></td>    
    <td scope="col"><div align="left"><strong>{$lang.subtotal}</strong></div></td>    
  </tr>

 

  {foreach from=$order.products item=goods}
  <tr>
     
    <td><div align="left">{$goods.products_id}</div></td>
    <td><div align="left">{$goods.products_name}</div></td>
    <td><div align="left">{$goods.products_price}</div></td>
    <td><div align="left">{$goods.products_amount}</div></td>
    <td><div align="left">{$goods.products_attr}    </div></td>    
    <td><div align="left">{$goods.products_subtotal}</div></td>
  </tr>
  {/foreach}

  <tr>  
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>    
    <td>&nbsp;</td>    
    <td><div align="left"><strong>{$lang.label_total}</strong></div></td>
    <td><div align="left">{$order.subtotal}</div></td>
    
  </tr>
</table>
</div>

<div class="list-div" style="margin-bottom: 5px">
<table width="100%" cellpadding="3" cellspacing="1">
  <tr>
    <th>{$lang.fee_info}</th>
  </tr>

  <tr>
    <td><div align="right">
    {$lang.label_total} &nbsp;{$order.subtotal} &nbsp; 	
    	{if $order.fee_items}
    	{foreach from=$order.fee_items item=feeitem }
     	  +&nbsp;{$feeitem.title} <strong>:&nbsp;{$feeitem.description} &nbsp;</strong>    	
    	{/foreach}
    	
    	{else} 
    	
    	{if $order.price_filters }
		
	 + {$lang.label_shipping_fee}<strong>&nbsp; {$order.formated_shipping_fee|default:"0"}&nbsp;</strong>
	 + {$lang.label_HandlingCharge}<strong>&nbsp;{$order.HandlingCharge|default:"0"}&nbsp;</strong>
	 + {$lang.label_ImportDuty}<strong>&nbsp;{$order.ImportDuty|default:"0"}&nbsp;</strong>
	 + {$lang.label_IndentPrice}<strong>&nbsp;{$order.IndentPrice|default:"0"}&nbsp;</strong>
	 	{/if}
	 
	 {/if}
	
	</div></td>
  <tr>

    <td><div align="right"> = {$lang.label_order_total}<strong>&nbsp;{$order.order_total|default:"0"}</strong></div></td>
  </tr>

</table>
</div> 


<div class="list-div" style="margin-bottom: 5px">
<table cellpadding="3" cellspacing="1">

<tr>
	<td> <div align="right"><strong>{$lang.label_delivery_id}</storng></div> </td>
	<td> {$order.shiporder_no}</td>
	<td>		
	<form name="frmShipID" method="post" action="?page=orders&action=save&id={$order.orders_id}" target="_self">
        <input type="text" name="shiporder_no" value="" />
        <input type="submit" name="submit" value="modify" onclick="chgShipid(); return false; " />
	  </form>
	  
	 </td>
	<td>

	</td>
  </tr>


</table>
</div>

{literal}

<script type="text/javascript" charset="utf-8">

	function doChange(){
		document.frmOrderStatus.submit();	
		}
		
	function chgShipid(){
		document.frmShipID.submit();
		}
		
</script>

{/literal}

{include file="pagefooter.htm"}